//
//  BTCDefine.h
//  BTCoin
//
//  Created by Robin on 18/03/2018.
//  Copyright © 2018 Robin. All rights reserved.
//

#ifndef BTCDefine_h
#define BTCDefine_h

//#define BaseHttpUrl @"http://192.168.1.22:8080/corn-app"  //测试地址
//kn20462109.iok.la
#define BaseHttpUrl @"http://120.79.161.222:8080/corn-app"
//获取买卖7档数据
#define SevenLevelDataUrl @"http://120.79.188.103:8088"
#define HistoryKLineHttpUrl @"http://120.79.188.103:8088"

typedef NS_ENUM(NSInteger,CoinType) {
    //(1:比特币,2:人民币,12:莱特币,13:以太币,14:以太经典)
    kCoinTypeBTC = 1,
    kCoinTypeCNY = 2,
    kCoinTypeLite = 12,
    kCoinTypeEther = 13,
    kCoinTypeEtherClassic = 14
};

#define BTC @"BTC"
#define CNY @"CNY"
#define LTC @"LTC"
#define ETH @"ETH"
#define ETC @"ETC"
#define USDT @"USDT"

#define MIN1 @"MIN1"
#define MIN3 @"MIN3"
#define MIN5 @"MIN5"
#define MIN10 @"MIN10"
#define MIN15 @"MIN15"
#define MIN30 @"MIN30"
#define HOUR @"HOUR"
#define DAY @"DAY"
#define WEEK @"WEEK"
#define MONTH @"MONTH"
#define YEAR @"YEAR"

#define CoinTypeDict    @{BTC:@(1),CNY:@(2),LTC:@(12),ETH:@(13),ETC:@(14)}

#define REQUESTCNYPROXYNOTIFICATION     @"RequestCNYProxyNotification"
#define REQUESTCNYDEALNOTIFICATION      @"RequestCNYDealNotification"
#define REQUESTLOGINAPPNOTIFICATION     @"RequestLoginAppNotification"
#define UPDATECNYTRADETYPENOTIFICATION     @"UpdateCNYTradeTypeNotification"

#define TRADEPRICESOCKETNOTIFICATION    @"TradePriceSocketNotification"

#endif /* BTCDefine_h */
